import Vue from 'vue';
import Vuex from 'vuex';
import createPersistedstate from 'vuex-persistedstate';
import tab from './tab';

Vue.use(Vuex)

// var ls = new SecureLS({
//   encodingType: "aes",    //加密类型
//   isCompression: false,   //是否压缩
//   encryptionSecret: "encryption",   //PBKDF2值  加密秘密
// });
export default new Vuex.Store({
	modules: {
		tab,
	},
	// 数据持久化
	plugins: [
		createPersistedstate({
			storage: sessionStorage,
			key: 'erabbit-client-pc-store',
			paths: ['tab']
		})
  ]
})
